﻿//
// Created by Administrator on 2020/9/8.
//
#include "Person.h"
#include "Student.h"

int main() {

    {
        Person person("test", 10);
        person.toString();
        std::cout << person;
    }

    std::cout << "****************************************************" << std::endl;

    {
        Student student("test", 19, "HHHH");
        student.toString();
        std::cout << student;
    }

    std::cout << "****************************************************" << std::endl;

    {
        Person *person = new Student("test", 19, "HHHH");
        person->toString();

        delete person;
    }

    std::cout << "****************************************************" << std::endl;


    return 0;
}